package com.ccrfid.rmc6.repository.personnel;

import com.ccrfid.rmc6.entity.personnel.PersonnelStepTrackEntity;
import org.springframework.data.repository.Repository;

import java.sql.Timestamp;
import java.util.List;

public interface PersonnelStepTrackRepository extends Repository<PersonnelStepTrackEntity, Long> {

    PersonnelStepTrackEntity save(PersonnelStepTrackEntity entity);

    List<PersonnelStepTrackEntity> getAllByPersonnelIdAndRecordTimeBetween(Long personnelId, Timestamp startTime, Timestamp stopTime);

    List<PersonnelStepTrackEntity> getAllByCardNumberAndRecordTimeBetween(Long cardNumber, Timestamp startTime, Timestamp stopTime);
}
